<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="container header">
	<div class="span5">
		<div class="logo">
			<a href="${pageContext.request.contextPath}/index.jsp">
				<img src="${pageContext.request.contextPath}/image/r___________renleipic_01/logo.png.png" alt="名城网上便利店"/>
			</a>
		</div>
	</div>
	<div class="span9">
<div class="headerAd">
	<img src="${pageContext.request.contextPath}/image/header.jpg" width="320" height="50" alt="正品保障" title="正品保障"/>
</div>	</div>
	<div class="span10 last">
		<div class="topNav clearfix">
			<ul>
				<s:if test="#session.existUser == null">
				<li id="headerLogin" class="headerLogin" style="display: list-item;">
					<a href="${pageContext.request.contextPath}/user_login.action">登录</a>|
				</li>
				<li id="headerRegister" class="headerRegister" style="display: list-item;">
					<a href="${pageContext.request.contextPath}/user_register.action"">注册</a>|
				</li>
				</s:if>
				<s:else>
					<li id="headerUsername" class="headerLogin" style="display: list-item;">
						<a><s:property value="#session.existUser.username" /></a>|
					</li>
					<li id="headerLogout" class="headerRegister" style="display: list-item;">
						<a href="${pageContext.request.contextPath }/user_logout.action">退出</a>|
					</li>
	                <li>
	                    <a>会员中心</a>|
	                    <ul>
	                    	<li><a href="${pageContext.request.contextPath }/order_findByUidWithPage?page=1">我的订单</a></li>
	                        <li><a href="${pageContext.request.contextPath }/address_findByUid.action">我的地址</a></li>
	                    </ul>
	                </li>
				</s:else>
                <li>
                    <a>购物指南</a>|
                </li>
                <li>
                    <a>关于我们</a>
                    
                </li>
			</ul>
		</div>
		<div class="cart">
			<a  href="${pageContext.request.contextPath }/cart_myCart.action">购物车</a>
		</div>
			<div class="phone">
				客服热线:
				<strong>96008/53277764</strong>
			</div>
	</div>
	<div class="span24">
		<ul class="mainNav">
					<li>
						<a href="${pageContext.request.contextPath }/index.action">首页</a>
						|
					</li>
					<s:iterator var="c" value="#session.cList">
					<li>
						<a href="${pageContext.request.contextPath }/product_findByCidWithPage?cid=<s:property value="#c.cid"/>&page=1"><s:property value="#c.cname"/></a>
						|
					</li>
					</s:iterator>
		</ul>
	</div>


</div>	
